<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Brand extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    const ENVELOPE_TYPE = [
        'regular' => [
            'name' => '固定模式',
            'fields' => [
                'envelope_money'
            ],
            'need_random' => false,
        ],
        'random' => [
            'name' => '随机模式',
            'fields' => [
                'start_money', 'end_money'
            ],
            'need_random' => false,
        ],
    ];

    protected $table = 'tinkle_brands';
}
